import request from "./http.request";

let api = '/zaolouji'
export default {
  // 获取token
  getProTenant(params) {return request({url: `/admin/sysdeptproject/getTenantInfo`,method: 'get',params})},
  // 喷淋记录
  getSprayData(data) {return request({url: `${api}/device/getlog`,method: 'post',data})},
  // 新增喷淋日志记录
  // addSavelog(params) {return request({url: `/device/savelog`,method: 'post',params})},
  // 获取项目列表
  getProjects() {return request({url: '/admin/user/getProjectDept',method: 'post'})},
  // 获取全部设备列表
  getALLDeviceList() {return request({url: '/dc/device/list-group-by-type',method: 'get'})},
  // 自动喷淋查询
  getSavelogAuto(data) {return request({url: `${api}/device/findrule`,method:'post',data})},
  // 自动喷淋新增和修改
  addSavelogAuto(data) {return request({url: `${api}/device/saverule`,method:'post',data})},
  // 喷淋设备列表查询
  getSprayDevice(data) {return request({url:`${api}/device/deviceinfo`,method:'post',data})},
  // 定时喷淋列表
  getTimeDevice(data) {return request({url:`${api}/device/cronlist`,method:'post',data})},
  // 定时喷淋新增/修改和开启 （废弃）
  getsaveOrEditCron(data) {return request({url:`${api}/device/saveOrEditCron`,method:'post',data})},
  // 定时喷淋新增
  getsaveCron(data) {return request({url:`${api}/device/saveCron`,method:'post',data})},
  // 定时喷淋修改
  getModiyCron(data) {return request({url:`${api}/device/modifyCron`,method:'post',data})},
  // 定时喷淋关闭 （废弃）
  getDelcron(data) {return request({url:`${api}/device/delcron`,method:'post',data})},
  // 定时喷淋开关
  getChangeStatus(data) {return request({url:`${api}/device/changestatus`,method:'post',data})},
  // 喷淋强制关闭
  getForceclose(data) {return request({url:`${api}/device/forceclose`,method:'post',data})},
}

